package com.guoxin.concurrentprogramming.chapter4.future;

public class Main {

    public static void main(String[] args) throws InterruptedException {
        Client client = new Client();
        Data data = client.request("name");
        System.out.println("请求完毕");
        Thread.sleep(2000);
        System.out.println("数据：" + data.getResult());
    }
}
